package com.zeng.dao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author zeng
 * @data 2021/06/12 22:09
 */
@Component
public class Zeng {
    private String name;

    public String getName() {
        return name;
    }

    @Bean
    @Value("zeng")
    public void setName(String name) {
        this.name = name;
    }
}
